<?php 
//*********************************** 
//Universal Media Publishing Platform
//Configuration file
//*********************************** 

// Connection settings | Nastroiki soedineniya
$database_host = 'localhost'; // Ne trogaite yesli ne ukazano hostingom drugoe
$database_user = 'your_user'; // Imya polzovatelya MySQL
$database_pass = 'your_pass'; // Parol polzovatelya
$database_name = 'ump'; // Nazvanie bazy

// Estabilishing connection | Podkluchenie k baze
$dbh = mysql_connect($database_host, $database_user, $database_pass) // Podkluchenie k serveru
    or die("Error: can't connect to MySQL! Check your settings.");
       
mysql_select_db($database_name) // Vibor bazi dannix
    or die("Error: there isn't a database with such name! Check your settings.");
    
mysql_query("SET NAMES 'utf8'"); // Anti-krakozyabra

//Vityagivaem nastroiki is BD
$query="SELECT * from settings WHERE 1";
$result=mysql_query($query);
while($row = mysql_fetch_array($result)){
    $settings = $row;
}
global $tpl, $sitename, $addr, $keywords, $description; 

$sitename = $settings["sitename"];
$addr = $settings["address"];
$tpl = $settings["template"];
$description = $settings["description"];
$keywords = $settings["keywords"];
$addr = $settings["address"];
?>
